{% extends 'LimsMainBundle::Layout/tableLayout.html.twig' %}

{% block stylesheets %}
  {{ parent() }}
{% endblock %}

{% block javascripts %}
  {{ parent() }}
{% endblock %}

{% block content %}
    <div class=row> 
                <div class=col-md-12> 
                    <div class=block> 
                        <div class=header> <h2>Зээлдэгчийн жагсаалт</h2> </div> 
                        <div class=content> 
                            <table cellpadding=0 cellspacing=0 width=100% class="table table-bordered table-striped sortable"> 
                                <thead> 
                                    <tr> 
                                        <th width="5%"><input type=checkbox class="checkall"/></th> 
                                        <th width="10%">Регистрийн дугаар</th>                                         
                                        <th width="50%">Нэр</th>
                                        <th width="20%">Төрөл</th>
                                        <th width="15%">Утас</th> 
                                    </tr> 
                                </thead> 
                                <tbody> 
                                    {% if debtorList is not null %}
                                        {% for debtor in debtorList %}
                                            <tr> 
                                                <td><input type=checkbox name="checkbox" value="{{debtor.ID}}"/></td> 
                                                <td>{{debtor.REGISTER_NUMBER}}</td> 
                                                <td><a href=""><b>{{debtor.NAME}}</b></a></td> 
                                                <td>{% if debtor.LEGAL_ENTITY_ID is null%}Иргэн{% else %}Аж ахуйн нэгж{% endif %}</td> 
                                                <td></td> 
                                            </tr>
                                        {% endfor%}
                                    {% endif %}
                                </tbody> 
                            </table> 
                        </div> 
                    </div> 
                </div> 
    </div> 
{% endblock %}